/**
 * 
 */
package t4j.concurrency;

/**
 * @author sz
 *
 * create time：2013-2-28
 */
public abstract class IntGenerator {
	private volatile boolean canceled = false;
	
	public abstract int next();
	
	public void cancel(){canceled = true;}
	
	public boolean isCanceled(){return canceled;}
}
